package org.zfes.snowier.cloud.zbss.cms.column.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.column.model.CmsColumn;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsColumnMapper extends BaseMapper<CmsColumn>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<CmsColumn> selectModelListPage(ParamMap params);
	
	List<Long>loadColumnIdByIsDefault(Byte isDefault);
	
	List<CmsColumn> loadCmsColumn();
	
	CmsColumn selectByColumnTreeCode(java.lang.String columnTreeCode);
	
	int selectSubColumnCountByColumnTreeCode(java.lang.String columnTreeCode);
	
	Long selectIdByColumnTreeCode(java.lang.String columnTreeCode);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
	
	void updateLink(@Param("columnId") Long columnId,@Param("link") String link);
	
	 void updateCmsColumnSortNum(@Param("columnId") Long  columnId,@Param("sortNum")Integer sortNum);
}
 